import { createApp } from 'vue';
// import './style.css';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import * as Icons from '@element-plus/icons-vue';
import CustomComponents from './components/common';
import App from './App.vue';
import router from './router/router';

const app = createApp(App);

// 遍历注册全局icon
for (let icon in Icons) {
    app.component(icon, (Icons as any)[icon]);
}

app.use(router);
app.use(ElementPlus);
app.use(CustomComponents); // 自定义组件的地方
app.mount('#app');
